package com.zhs.smartmall.order.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 *
 * @author zhenghuisheng
 * @since 2023-11-12
 */
@Data
@ApiModel(value = "OmsOrderSettingDto")
public class OmsOrderSettingDto implements Serializable {
        //表字段
        private static final long serialVersionUID = 1L;
        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "主键")
        private Long id;

        @ApiModelProperty(value = "秒杀订单超时关闭时间(分)")
        private Integer flashOrderOvertime;

        @ApiModelProperty(value = "正常订单超时时间(分)")
        private Integer normalOrderOvertime;

        @ApiModelProperty(value = "发货后自动确认收货时间（天）")
        private Integer confirmOvertime;

        @ApiModelProperty(value = "自动完成交易时间，不能申请退货（天）")
        private Integer finishOvertime;

        @ApiModelProperty(value = "订单完成后自动好评时间（天）")
        private Integer commentOvertime;

        @ApiModelProperty(value = "会员等级【0-不限会员等级，全部通用；其他-对应的其他会员等级】")
        private Integer memberLevel;

        @ApiModelProperty(value = "创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "更新时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;

        @ApiModelProperty(value = "是否删除")
        private Integer isDeleted;

        //=====================自定义字段=====================

        //id
        private List<String> idList;
}
